package com.cjq.bean;


import java.sql.Timestamp;
import java.util.Objects;

public class Courier {
    private Integer id;
    private String sysName;
    private String sysPhone;
    private String cardId;          //身份证号码
    private String password;
    private Integer jianShu ;            //以负责的快递件数
    private String loginIp;
    private Timestamp createTime;   //创建时间
    private Timestamp loginTime;     //上次登录时间

    public Courier() {
    }

    public Courier(int id, String sysName, String sysPhone, String cardId, String password, int jianShu, String loginIp, Timestamp createTime, Timestamp loginTime) {
        this.id = id;
        this.sysName = sysName;
        this.sysPhone = sysPhone;
        this.cardId = cardId;
        this.password = password;
        this.jianShu = jianShu;
        this.loginIp = loginIp;
        this.createTime = createTime;
        this.loginTime = loginTime;
    }

    public Courier(String sysName, String sysPhone, String cardId, String password) {
        this.sysName = sysName;
        this.sysPhone = sysPhone;
        this.cardId = cardId;
        this.password = password;
    }

    public Courier(Integer id, String sysName, String sysPhone, String cardId, String password) {
        this.id = id;
        this.sysName = sysName;
        this.sysPhone = sysPhone;
        this.cardId = cardId;
        this.password = password;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getSysName() {
        return sysName;
    }

    public void setSysName(String sysName) {
        this.sysName = sysName;
    }

    public String getSysPhone() {
        return sysPhone;
    }

    public void setSysPhone(String sysPhone) {
        this.sysPhone = sysPhone;
    }

    public String getCardId() {
        return cardId;
    }

    public void setCardId(String cardId) {
        this.cardId = cardId;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getJianShu() {
        return jianShu;
    }

    public void setJianShu(Integer jianShu) {
        this.jianShu = jianShu;
    }

    public String getLoginIp() {
        return loginIp;
    }

    public void setLoginIp(String loginIp) {
        this.loginIp = loginIp;
    }

    public Timestamp getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }

    public Timestamp getLoginTime() {
        return loginTime;
    }

    public void setLoginTime(Timestamp loginTime) {
        this.loginTime = loginTime;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Courier courier = (Courier) o;
        return id == courier.id &&
                jianShu == courier.jianShu &&
                Objects.equals(sysName, courier.sysName) &&
                Objects.equals(sysPhone, courier.sysPhone) &&
                Objects.equals(cardId, courier.cardId) &&
                Objects.equals(password, courier.password) &&
                Objects.equals(loginIp, courier.loginIp) &&
                Objects.equals(createTime, courier.createTime) &&
                Objects.equals(loginTime, courier.loginTime);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, sysName, sysPhone, cardId, password, jianShu, loginIp, createTime, loginTime);
    }

    @Override
    public String toString() {
        return "Courier{" +
                "id=" + id +
                ", sysName='" + sysName + '\'' +
                ", sysPhone='" + sysPhone + '\'' +
                ", cardId='" + cardId + '\'' +
                ", password='" + password + '\'' +
                ", jianShu=" + jianShu +
                ", loginIp='" + loginIp + '\'' +
                ", createTime=" + createTime +
                ", loginTime=" + loginTime +
                '}';
    }
}
